﻿<ul class="nav pull-right">
@if (Request.IsAuthenticated) {
    <li>
        @Html.ActionLink("DashBoard", "Index", "DashBoard", new { area ="Scrum"}, null)
    </li>
    <li>
        @Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "Email", title = "Manage" })
    </li>
    <li class="unlink">@using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" }))
        {
            @Html.AntiForgeryToken()
                <a class="btn-small btn-info" href="javascript:document.getElementById('logoutForm').submit()">Logout</a>
        }
    </li>
    }
else {
    <li>@Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { @class = "meniitem",id = "registerLink" })</li>
    <li>@Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new {@class = "meniitem", id = "loginLink" })</li>
}
</ul>
